package com.smartstate.iot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.smartstate.iot.entity.AmmeterMeter;
import com.smartstate.iot.mapper.AmmeterMeterMapper;
import com.smartstate.iot.service.AmmeterMeterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AmmeterMeterServiceImpl extends ServiceImpl<AmmeterMeterMapper, AmmeterMeter> implements AmmeterMeterService {

    @Autowired
    private AmmeterMeterMapper ammeterMeterMapper;

    @Override
    public String getSiteByDeviceId(String deviceId) {
       return ammeterMeterMapper.getSiteByDeviceId(deviceId);
    }
}
